package com.hixtrip.sample.infra.constant;

/**
 * RedisKey常量类
 */
public class RedisKeyConstant {

    /**
     * sku对应库存key,格式   INVENTORY:{skuId}
     */
    public static final String INVENTORY_KEY = "INVENTORY:";

    /**
     * 库存key对应的数据(Hash类型)中可售库存的key
     */
    public static final String INVENTORY_SELLABLE_KEY = "sellableQuantity";

    /**
     * 库存key对应的数据(Hash类型)中占用库存的key
     */
    public static final String INVENTORY_OCCUPIED_KEY = "occupiedQuantity";

    /**
     * 订单支付缓存
     */
    public static final String ORDER_PAY_STATUS = "ORDER:PAY:STATUS:";

}
